<!-- src/main/resources/templates/reply/delete.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>删除评论</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/deletestyles.css}">
</head>
<body>
<h2>删除评论</h2>
<p>请确认是否要删除该评论?</p>

<table>
    <thead>
    <tr>
        <th>评论编号</th>
        <th>评论内容</th>
        <th>评论时间</th>
        <th>评论文章编号</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td th:text="${reply.id}"></td>
        <td th:text="${reply.content}"></td>
        <td th:text="${#temporals.format(reply.time, 'yyyy-MM-dd HH:mm:ss')}"></td>
        <td th:text="${reply.article_id}"></td>
    </tr>
    </tbody>
</table>

<form th:action="@{'/reply/delete/' + ${reply.id}}" method="post">
    <input type="submit" value="确认删除" class="confirm-btn">
    <a class="cancel-btn" th:href="@{/reply/findAll}">取消</a>
</form>

</body>
</html>
